close all
figure;
load test_normal_blockWave
subplot(5,1,1)
plot(seesawdata.time,seesawdata.signals.values(:,1))
ylabel('position')
subplot(5,1,2)
plot(seesawdata.time,seesawdata.signals.values(:,2))
ylabel('angle')
subplot(5,1,3)
plot(seesawdata.time,seesawdata.signals.values(:,3))
ylabel('speed')
subplot(5,1,4)
plot(seesawdata.time,seesawdata.signals.values(:,4))
ylabel('speed of angle')
subplot(5,1,5)
plot(seesawdata.time,seesawdata.signals.values(:,5))
hold on 
plot([seesawdata.time(1) seesawdata.time(end)], [-5 -5] ,'r');
plot([seesawdata.time(1) seesawdata.time(end)], [5 5] ,'r');
axis([seesawdata.time(1), seesawdata.time(end), -5.5, 5.5]);
hold off
ylabel('voltage')
xlabel('seconds');
%%
figure;
subplot(1,2,1)
plot(seesawdata.time, seesawdata.signals.values(:,1:2),'LineWidth',1.5);
% legend('position', 'angle');
xlabel('seconds');
hold on
plot([seesawdata.time(1) seesawdata.time(end)],[0 0], 'k--')
hold off
subplot(1,2,2)
plot(seesawdata.time, seesawdata.signals.values(:,3:4),'LineWidth',1.5);
hold on 
plot([seesawdata.time(1) seesawdata.time(end)],[0 0], 'k--')
hold off
xlabel('seconds');



% matlab2tikz('../verslag/img/realSetupBlockwaveNormal.tikz', 'height', '\figureheight', 'width', '\figurewidth' );

